package org.slsale.service.function;

import java.util.List;

import javax.annotation.Resource;

import org.slsale.dao.function.FuctionMapper;
import org.slsale.pojo.user.Authority;
import org.slsale.pojo.user.Function;
import org.springframework.stereotype.Service;
@Service
public class FunctionServiceimpl implements FunctionService {

	@Resource
	private FuctionMapper fuctionMapper;
	 
	
	@Override
	public List<Function> getMainFunctionList(Authority authority) throws Exception {
		// TODO Auto-generated method stub
		return fuctionMapper.getMainFunctionList(authority);
	}

	@Override
	public List<Function> getSubFunctionList(Function function) throws Exception {
		// TODO Auto-generated method stub
		return fuctionMapper.getSubFunctionList(function);
	}

	@Override
	public List<Function> getSubFuncList(Function function) throws Exception {
		// TODO Auto-generated method stub
		return fuctionMapper.getSubFuncList(function);
	}

	@Override
	public List<Function> getFunctionListByRoleId(Authority authority) throws Exception {
		// TODO Auto-generated method stub
		return fuctionMapper.getFunctionListByRoId(authority);
	}

}
